home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Applications 2002 November / SGI IRIX 6.5 Applications 2002 November.iso / dist / sgi_apache.idb / var / sgi_apache / src / do.sgi_apache.z / do.sgi_apache
Encoding:
Text File  |  2002-06-27  |  2.8 KB  |  149 lines

  1. :
  2. # do.sgi_apache
  3. #
  4. DIR_MM=mm-1.1.3
  5. DIR_EAPI=mod_ssl-2.8.9-1.3.26
  6. DIR_APACHE=apache_1.3.26
  7.  
  8. X_ROOT=$ROOT
  9. X_TOOL=$TOOLROOT
  10.  
  11. BASE=`pwd`
  12. DIST=$BASE/dist
  13. TEMP=$BASE/tmp
  14. SRC=$BASE/source
  15.  
  16. if [ -f do.sgi_apache ]
  17. then
  18.   echo -n ""
  19. else
  20.   echo "ERROR:  can't execute from remote directory... [ do.sgi_apache ]"
  21.   exit
  22. fi
  23.  
  24. if [ -d $TEMP ]
  25. then
  26.   /bin/rm -rf $TEMP
  27. fi
  28. mkdir $TEMP
  29. #
  30. # ------------------------------------------------------------------[ source ]
  31. #
  32. if [ -d $SRC ]
  33. then
  34.   /bin/rm -rf $SRC
  35. fi
  36. mkdir $SRC
  37. cd $SRC
  38.  
  39. for file in $DIST/*.gz
  40. do
  41.   gzcat $file | tar xvf -
  42. done
  43. #
  44. # ------------------------------------------------------------------[ sgi_mm ]
  45. #
  46. if [ -d $DIR_MM ]
  47. then
  48.   cd $DIR_MM
  49.   CC="cc" CFLAGS="-n32 -mips3" OPTIM="-O" ./configure --disable-shared --with-layout=GNU --prefix=/var/sgi_apache/server
  50.  
  51.   make
  52.   cd $SRC
  53. else
  54.   echo "ERROR:  directory missing... [ $DIR_MM ]"
  55.   exit
  56. fi
  57. #
  58. # ----------------------------------------------------------------[ sgi_eapi ]
  59. #
  60. if [ -d $DIR_EAPI ]
  61. then
  62.   cd $DIR_EAPI
  63.   ./configure --with-eapi-only --enable-shared=ssl --with-mm=../$DIR_MM --with-apache=../$DIR_APACHE --with-layout=GNU --prefix=/var/sgi_apache/server
  64.  
  65.   cd $SRC
  66. else
  67.   echo "ERROR:  directory missing... [ $DIR_MM ]"
  68.   exit
  69. fi
  70. #
  71. # --------------------------------------------------------------[ sgi_apache ]
  72. #
  73. if [ -d $DIR_APACHE ]
  74. then
  75.   cd $DIR_APACHE
  76.  
  77.   unset ROOT
  78.   unset TOOLROOT
  79.  
  80.   EAPI_MM=../$DIR_MM         \
  81.   CC="cc" CFLAGS="-n32 -mips3" OPTIM="-O" ./configure \
  82.   --enable-module=unique_id  \
  83.   --enable-module=mime_magic \
  84.   --enable-module=rewrite    \
  85.   --enable-module=speling    \
  86.   --enable-module=auth_dbm   \
  87.   --enable-module=auth_db    \
  88.   --enable-module=auth_anon  \
  89.   --enable-module=digest     \
  90.   --enable-module=headers    \
  91.   --enable-module=cern_meta  \
  92.   --enable-module=expires    \
  93.   --enable-module=info       \
  94.   --enable-module=usertrack  \
  95.   --enable-module=proxy      \
  96.   --enable-module=so         \
  97.   --enable-rule=EAPI         \
  98.   --prefix=/var/sgi_apache/server \
  99.   --with-layout=GNU
  100.  
  101.   export ROOT=$X_ROOT
  102.   export TOOLROOT=$X_TOOL
  103.  
  104.   make install-quiet root=$TEMP
  105.   cd $SRC
  106. else
  107.   echo "ERROR:  directory missing... [ $DIR_APACHE ]"
  108.   exit
  109. fi
  110.  
  111. cd $TEMP
  112. if [ -d var/sgi_apache/server/logs ]
  113. then
  114.   echo -n ""
  115. else
  116.   mkdir -p var/sgi_apache/server/logs
  117. fi
  118.  
  119. cd $TEMP
  120. cd var/sgi_apache/server/sbin
  121. if [ -f $DIST/patch.apxs_sgi ]
  122. then
  123.   cp apxs apxs_sgi
  124.   patch apxs_sgi $DIST/patch.apxs_sgi
  125.   rm -f apxs_sgi.*
  126. fi
  127.  
  128. cd $TEMP
  129. if [ -d var/sgi_apache/src/dist ]
  130. then
  131.   echo -n ""
  132. else
  133.   if [ -d var/sgi_apache/src ]
  134.   then
  135.     echo -n ""
  136.   else
  137.     mkdir -p var/sgi_apache/src
  138.   fi
  139.   cd var/sgi_apache/src
  140.   cp ../../../../do.sgi_apache .
  141.   cp -r ../../../../dist .
  142.   cd ..
  143.   du src
  144. fi
  145. cd $BASE
  146. #
  147. # --------------------------------------------------------------------[ done ]
  148. #
  149.